

#include <iostream> 

using namespace std;

int main()
{
int option; 
do 
{
//Displaying Options for the menu
cout << "1)  " << endl;
cout << "2)  " << endl;
cout << "3)     " << endl;
cout << "4) Exit Program " << endl;
//Prompting user to enter an option according to menu
cout << "Please select an option : ";
cin >> option;  
if(option == 1) // Checking if user selected option 1
{

}
else if(option == 2) // Checking if user selected option 2
{

}
else if(option == 3) // Checking if user selected option 3
{

}
else if(option == 4) // Checking if user selected option 4
{
cout << "Terminating Program" << endl;
}
else //if user has entered invalid choice (other than 1,2,3 or 4)
{
//Displaying error message
cout << "Invalid Option entered" << endl;
}
}
while(option != 4);  //condition of do-while loop

return 0;
}

